import App from './App'

// #ifndef VUE3
import Vue from 'vue'
import './uni.promisify.adaptor'
import store from './store'
import http from './common/httpRequest'
import mHelper from '@/utils/helper.js';
Vue.prototype.$store = store;
Vue.prototype.$mHelper = mHelper;
Vue.prototype.$api = http
import uView from '@/uni_modules/uview-ui'
import BottomNav from './components/bottomNav.vue'
Vue.component('BottomNav',BottomNav)
Vue.use(uView)


App.mpType = 'app'

const app = new Vue({
  ...App
})
app.$mount()
// #endif

// #ifdef VUE3
import { createSSRApp } from 'vue'

Vue.config.productionTip = false
export function createApp() {
  const app = createSSRApp(App)
  return {
    app
  }
}
// #endif